home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 2.5 KB | 85 lines | [TEXT/MPS ] |
- //----------------------------------------------------------------------------------------
- // UDefaultDocument.cp
- // Copyright © 1996 by Apple Computer, Inc. All rights reserved.
- //----------------------------------------------------------------------------------------
-
- #ifndef __UDefaultDocument__
- #include "UDefaultDocument.h"
- #endif
-
- // QD3D Sample
-
- #ifndef __UQD3DViewer__
- #include "UQD3DViewer.h"
- #endif
-
- // MacApp
-
- #ifndef __UVIEWSERVER__
- #include "UViewServer.h"
- #endif
-
- #ifndef __UWINDOW__
- #include "UWindow.h"
- #endif
-
- //========================================================================================
- // CLASS TDefaultDocument
- //========================================================================================
- #undef Inherited
- #define Inherited TDocument
-
- #pragma segment AOpen
- MA_DEFINE_CLASS_M1(TDefaultDocument, Inherited);
-
- //----------------------------------------------------------------------------------------
- // TDefaultDocument constructor
- //----------------------------------------------------------------------------------------
- #pragma segment AOpen
-
- TDefaultDocument::TDefaultDocument():
- fQD3DView1(NULL)
- {
- } // TDefaultDocument::TDefaultDocument
-
- //----------------------------------------------------------------------------------------
- // TDefaultDocument::IDefaultDocument:
- //----------------------------------------------------------------------------------------
- #pragma segment AOpen
-
- void TDefaultDocument::IDefaultDocument()
- {
- this->IDocument();
- } // TDefaultDocument::IDefaultDocument
-
- //----------------------------------------------------------------------------------------
- // TDefaultDocument destructor
- //----------------------------------------------------------------------------------------
- #pragma segment AClose
-
- TDefaultDocument::~TDefaultDocument()
- {
- }
-
- //----------------------------------------------------------------------------------------
- // TDefaultDocument::DoMakeViews:
- //----------------------------------------------------------------------------------------
- #pragma segment AOpen
-
- void TDefaultDocument::DoMakeViews(Boolean /*forPrinting*/) // Override
- {
-
- TWindow* aWindow = NULL;
- TQD3DViewerView* aQD3DView = NULL;
-
- FailNIL(aWindow = gViewServer->NewTemplateWindow(kDefaultWindowID, this));
-
- fQD3DView1 = (TQD3DViewerView*) (aWindow->FindSubView('q3d1'));
-
- } // TDefaultDocument::DoMakeViews
-
- //----------------------------------------------------------------------------------------
- // End of UDefaultDocument.cp
-
- #pragma segment Inline
-